'use strict';

const Controller = require('egg').Controller;
const path = require('path');
const fs = require('fs');

class HomeController extends Controller {
  async index(ctx) {
    ctx.body = await fs.readFileSync(path.join(__dirname, '../../public/miai/index.html'), 'utf8');
  }
  async admin(ctx){
    ctx.body = await fs.readFileSync(path.join(__dirname, '../../public/index.html'), 'utf8');
  }
  
  
}

module.exports = HomeController;
